
define(['app'], function(app) {
	app.register.service('ReadilyPhotographServices',function(httpServices){
		
		//微信随手拍模块
		var readilyPhone = {};
		
		//我要上报新增
		readilyPhone.add = function(_param, _callback, _callback2) {
			httpServices.ajax(_param, _callback, _callback2, 'get', '/eimp/readily/phone/add');
		};
		//查询我的报料记录
		readilyPhone.listAllByUid = function(_param, _callback, _callback2) {
			httpServices.ajax(_param, _callback, _callback2, 'get', '/eimp/readily/phone/listAllByUid');
		};
		//查询指定id报料详细信息
		readilyPhone.queryById = function(_param, _callback, _callback2) {
			httpServices.ajax(_param, _callback, _callback2, 'get', '/eimp/readily/phone/queryById');
		};
		//下载上传图片
		readilyPhone.upoload = function(_param, _callback, _callback2) {
			httpServices.ajax(_param, _callback, _callback2, 'get', '/eimp/readily/phone/upoload');
		};
		//获取上报类型数据
		readilyPhone.getType = function(_param, _callback, _callback2) {
			httpServices.ajax(_param, _callback, _callback2, 'get', '/eimp/readily/phone/getType');
		};
		//获取热门报料
		readilyPhone.listFirstPage = function(_param, _callback, _callback2) {
			httpServices.ajax(_param, _callback, _callback2, 'get', '/eimp/readily/phone/listFirstPage');
		};
		return {
			readilyPhone : readilyPhone
		}
		
	});
});